From 22ce0549e20ee397cf5953bd6b7aafc752deaa28 Mon Sep 17 00:00:00 2001
From: Owen Jacobson <owen@grimoire.ca>
Date: Sat, 2 Nov 2024 20:02:24 -0400
Subject: Run prettier, make lint part of pre-commit

---
 ui/routes/(login)/invite/[invite]/+page.svelte | 49 +++++++++++++-------------
 1 file changed, 25 insertions(+), 24 deletions(-)

(limited to 'ui/routes/(login)/invite/[invite]/+page.svelte')

diff --git a/ui/routes/(login)/invite/[invite]/+page.svelte b/ui/routes/(login)/invite/[invite]/+page.svelte
index 7ae388a..8f4d1a4 100644
--- a/ui/routes/(login)/invite/[invite]/+page.svelte
+++ b/ui/routes/(login)/invite/[invite]/+page.svelte
@@ -1,34 +1,35 @@
 <script>
-    import { goto } from '$app/navigation';
-    import { acceptInvite } from '$lib/apiServer';
+	import { goto } from '$app/navigation';
+	import { acceptInvite } from '$lib/apiServer';
 
-    import LogIn from '$lib/components/LogIn.svelte';
+	import LogIn from '$lib/components/LogIn.svelte';
 
-    export let data;
+	export let data;
 
-    let username = "", password = "";
-    let pending = false;
-    $: disabled = pending;
+	let username = '',
+		password = '';
+	let pending = false;
+	$: disabled = pending;
 
-    async function onSubmit() {
-        pending = true;
-        const response = await acceptInvite(data.invite.id, username, password);
-        if (200 <= response.status && response.status < 300) {
-            username = '';
-            password = '';
-            goto('/');
-        }
-        pending = false;
-    }
+	async function onSubmit() {
+		pending = true;
+		const response = await acceptInvite(data.invite.id, username, password);
+		if (200 <= response.status && response.status < 300) {
+			username = '';
+			password = '';
+			goto('/');
+		}
+		pending = false;
+	}
 </script>
 
 {#await data}
-<div class="card m-4 p-4">
-    <p>Loading invitation…</p>
-</div>
+	<div class="card m-4 p-4">
+		<p>Loading invitation…</p>
+	</div>
 {:then { invite }}
-<div class="card m-4 p-4">
-    <p>Hi there! {invite.issuer} invites you to the conversation.</p>
-</div>
-<LogIn bind:disabled bind:username bind:password on:submit={onSubmit} />
+	<div class="card m-4 p-4">
+		<p>Hi there! {invite.issuer} invites you to the conversation.</p>
+	</div>
+	<LogIn bind:disabled bind:username bind:password on:submit={onSubmit} />
 {/await}
-- 
cgit v1.2.3

